package com.koron.css2.workflow.variables;

import com.koron.css2.serviceManage.bean.UserInfoBean;
import org.koron.ebs.mybatis.SessionFactory;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service("pj_consult")
public class PjConsultWorkflowVariable implements WorkflowVariable {

	@Override
	public Map<String, Object> getVariable(SessionFactory factory, Map<String, Object> variable, String biillId, UserInfoBean userInfo) {
		if (variable == null) {
            variable = new HashMap<String, Object>();
        }
		variable.put("user", userInfo.getUserInfo().getAcount());
		return variable;
	}

}
